package com.thtf.util;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public class HttpRequest {
    public static String getRemortIP(HttpServletRequest request) {
        if (request.getHeader("x-forwarded-for") == null) {
            return request.getRemoteAddr();
        }
        return request.getHeader("x-forwarded-for");
    }



}
